package org.grow.present.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author: xwg
 * @CreateDate: 2024/10/7
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Result<T> {

    private Integer code;
    private String message;
    private T data;

    public static Result ok(){
        Result result = new Result();
        result.code=200;
        return result;
    }
}
